﻿#pragma once

#include "OperatorPropertyGridCtrl.h"

// COperatorDialog 对话框

class COperatorDialog : public CDialogEx
{
	DECLARE_DYNAMIC(COperatorDialog)

public:
	COperatorDialog(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~COperatorDialog();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_DIALOG_OPERATOR };
#endif

protected:
	ck::Operator*	m_pOperator;

public:
	COperatorPropertyGridCtrl m_grid;

	//CMFCPropertyGridCtrl m_grid;
public:
	void	SetOperator(ck::Operator* pOperator);

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	virtual BOOL OnInitDialog();
	
};
